$(document).ready(function($){
				if($(".jizhupwd").is(':checked')){
					$("#username").val(localStorage.getItem("username_"));
					$("#password").val(localStorage.getItem("pwd_"));
				}
				var e = {};
				e.startTip = function(){
					$(".v-tip").animate({"top":"0"},500,function(){
						$(".v-tip").delay(1000).animate({"top":"-"+$(".v-tip").css("height")},1000);
					});
				};
				e.startTip();
					var loginobj=function(){
						$("#login-btn").on("click",function(){
							var $uname=$.trim($("#username").val());
							var $pwd=$.trim($("#password").val());

							if($uname=="" || $uname==null){
								$.user.template("你还没输入账号！");
								return false;
							}
							if($pwd=="" || $pwd==null){
								$.user.template("你还没输入密码！");
								return false;
							}
							if($.trim($uname)!="" && $.trim($pwd)!=""){
								var data={username:$uname,password:$pwd};
								console.log(data);
								/* $.post("<c:url value='/rest/logon'/>",data,function(rst){
									console.log("->"+rst);
								}); */
								$("#login-btn").html("登录中...")
								.attr("disabled",true)
								.css({"background-color":" #F5B5CD"})
								.removeAttr('href');
//								return;
								var url="/WX-PLATFORM/rest/logon";
								$.ajax({
									url:url,
									method:"POST",
									data:data,
									success:function(d){
										console.log("url="+url);
										if(d=="true"){
											console.log("true=");
											localStorage.setItem("username_", $uname);
											localStorage.setItem("pwd_", $pwd);
											
											 location.href="/WX-PLATFORM/user/list.htm"; 
										}else if(d=="no_exist_this_user"){
											layer.msg("该用户不存在！",{time:2000});
										}else{
											layer.msg("请输入正确的密码！",{time:2000});
										}
											
									}
								});
							}
								
								
						});
					}

					loginobj();

			});